package com.example.index.system

import android.app.Activity
import android.content.Intent
import android.util.Log

class CustomAppComponentFactory : android.app.AppComponentFactory() {

    val TAG = "AppComponentFactory"

    @Throws(
        InstantiationException::class,
        IllegalAccessException::class,
        ClassNotFoundException::class
    )
    override fun instantiateActivity(
        cl: ClassLoader,
        className: String,
        intent: Intent?
    ): Activity {
        //

        Log.i(TAG, "instantiateActivity: $className")
        return cl.loadClass(className).newInstance() as Activity
    }

}